﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WindowsFormsApp1
{
    public partial class FormShowCCDot : Form
    {
        public FormShowCCDot()
        {
            InitializeComponent();
        }

        private void btnShowCCDot_Click(object sender, EventArgs e)
        {
            Bitmap bm = new Bitmap(60,20);
            Graphics g = Graphics.FromImage(bm);
            g.DrawString("新年好",new Font("细等线体",12),Brushes.Black,0,0);
            StringBuilder sb = new StringBuilder();
            for(int i = 0; i < 20; i++)
            {
                for (int j = 0; j <60; j++)
                {

                    if (bm.GetPixel(j,  i).ToArgb() != 0)
                    {
                        sb.Append("W");
                    }
                    else
                    {
                        sb.Append(" ");
                    }
                }
                sb.AppendLine();
            }
            richTextBox1.Text = sb.ToString();
            
        }
    }
}
